{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" method="post" action="#">
            
            <div class="layui-form-item">
                <label for="community_id" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="community_id" lay-verify="required">
                        <option value="">选择小区</option>
                        {foreach $communitylist as $com}
                        <option value="{$com.id}">{$com.community_name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
             <label for="gate_name" class="layui-form-label">
                    <span class="x-red">*</span>名称:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="gate_name" name="gate_name" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            
           
            <div class="layui-form-item">
              <label for="address" class="layui-form-label">
                  <span class="x-red">*</span>详细地址:
              </label>
              <div class="layui-input-inline">
                  <input type="text" id="address" name="address" required="" lay-verify="required"
                  autocomplete="off" class="layui-input" style="width:300px;">
              </div>
            </div>
            <div class="layui-form-item">
             <label for="voice_id" class="layui-form-label">
                    <span class="x-red"></span>收款喇叭:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="voice_id" name="voice_id" 
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
            
            <div class="layui-form-item">
             <label for="sub_mch_id" class="layui-form-label">
                    <span class="x-red"></span>微信商户号:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="sub_mch_id" name="sub_mch_id" 
                    autocomplete="off" class="layui-input" style="width:300px;">
                </div>
            </div>
       

          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button  class="layui-btn" lay-filter="add" lay-submit="">
                  添加
              </button>
          </div>
      </form>
    </div>
    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则

    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>